﻿using Coldairarrow.Entity.Base_Manage;
using Coldairarrow.Util;
using Google.Ads.GoogleAds.Config;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V19.Services;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Interface
{
    public class ADS_QueryEventArgs
    {
        //返回的数据
        public string ResultStr { get; set; }
        //所有行数据
        public List<object> Rows { get; set; }


        //分页请求数据
        public ADS_QueryPage Page { get; set; }

        // 初始化 Google Ads 客户端配置
        public GoogleAdsConfig config { get; set; }

        // 创建 Google Ads 客户端
        public GoogleAdsClient client { get; set; }
        // 获取 Google Ads 服务
        public GoogleAdsServiceClient service { get; set; }
        // 客户ID
        public string customerId { get; set; }
        //成功标志
        public bool Success { get; set; }

        //同一请求执行异常最大次数次数
        public bool CountOut { get; set; }

        //用于Http请求
        public HttpClient HttpClient { get; set; }

        //接口请求的参数
        public string reqData { get; set; }

        //API配置
        public Base_InterfaceOption APIOption { get; set; }

        //API所有参数
        public List<Base_InterfaceOptionEntry> APINodes { get; set; }

        //API参数的最高层父级
        public List<Base_InterfaceOptionEntry> ParentNode { get; set; }

        /// <summary>
        /// 自定义数据
        /// </summary>
        public object CustomData { get; set; }

        /// <summary>
        /// 自定义数据2
        /// </summary>
        public object CustomData2 { get; set; }

    }

    public class ADS_UrlQuery
    {
        public string Token { get; set; }
        public string AppId { get; set; }
        public string AppSecret { get; set; }
        public string OL_Key { get; set; }
    }
}
